package com.nabi.library.contents.elements.style
{
	import flash.display.Graphics;
	import flash.geom.Matrix;
	
	public class SolidFill implements IFill
	{
		private var m_color:int;
		private var m_alpha:Number;
		
		public function SolidFill($color:int = 0, $alpha:Number = 1.0)
		{
			m_color = $color;
			m_alpha = $alpha;
		}
		
		public function Draw($graphic:Graphics, $matrix:Matrix=null):void
		{
			if(m_color < 0) return;
			
			$graphic.beginFill(m_color, m_alpha);
		}
		
		public function GetColor(): int { return m_color; }
		
		public function SetColot($value:int): void { m_color = $value; }
		
		public function GetAlpha(): Number { return m_alpha; }
		
		public function SetAlpha($value:Number): void { m_alpha = $value; }
	}
}